package com.summer.campussct.mapper;

import com.summer.campussct.pojo.VehicleOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.summer.campussct.pojo.dto.OrderDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-05-15
 */
public interface VehicleOrderMapper extends BaseMapper<VehicleOrder> {

    List<OrderDto> getOrderListByUid(@Param("uid") long uid,@Param("orderStatus") Integer orderStatus);

    OrderDto selectDetails(@Param("id")long id, @Param("uid") long uid);

    List<OrderDto> mySellOrder(@Param("uid") long uid, @Param("orderStatus")Integer orderStatus);
}
